package cn.edu.scau.nursingcenter.config;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
 * webMvc配置类
 * @author feng
 *
 */
@SpringBootConfiguration
public class WebMvcConfig implements WebMvcConfigurer {
	
	/**
	 * 静态资源加载配置
	 */
	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("/**").addResourceLocations("classpath:/static");
	}
}
